//package com.united.ucts.gateway.config;
//
//import com.united.ucts.gateway.handler.HystrixFallbackHandler;
//import lombok.AllArgsConstructor;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.http.MediaType;
//import org.springframework.web.reactive.function.server.RequestPredicates;
//import org.springframework.web.reactive.function.server.RouterFunction;
//import org.springframework.web.reactive.function.server.RouterFunctions;
//import org.springframework.web.reactive.function.server.ServerResponse;
//
///**
// * 网管路由配置信息
// *
// * @author hudan
// * @version 1.0
// * @filename GatewayRoutersConfiguration.java
// * @copyright <a href="www.united.cn">www.united.cn</a>
// * @date 2019-11-30
// */
//@Slf4j
//@Configuration
//@AllArgsConstructor
//public class GatewayRoutersConfiguration {
//
//    private final HystrixFallbackHandler hystrixFallbackHandler;
//
//    @Bean
//    public RouterFunction<ServerResponse> routerFunction() {
//        return RouterFunctions.route(
//                RequestPredicates.path("/fallback").and(RequestPredicates.accept(MediaType.TEXT_PLAIN)), hystrixFallbackHandler);
//
//    }
//}